import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: require('@/pages/index').default,
      // redirect: '/login',
    },
    {
      path:"/login",
      name:'登录',
      component:require('@/pages/login').default
    },
    {
      path:"/register",
      name:'注册',
      component:require('@/pages/register').default
    },
    {
      path:"/frend",
      name:'聊天',
      component:require('@/pages/frend').default
    },
    {
      path:"/addFrend",
      name:'添加好友',
      component:require('@/pages/addFrend').default
    },
    {
      path:"/group",
      name:'群聊',
      component:require('@/pages/group').default
    },
  ]
})
